package china.nanjing.mychancellor.service.hystrix;

import china.nanjing.mychancellor.service.MilitaryServiceFeign;

import java.util.HashMap;

/**
 * @author Chen Hongyu
 */
public class MilitaryServiceFeignHystrix implements MilitaryServiceFeign {
    @Override
    public Object computeDuchyMilitaryStrengthById(Long duchyId) {
        // TODO 应该封装一个异常类，统一拦截处理
        HashMap<String, Object> hashMap = new HashMap<>();
        hashMap.put("computeDuchyMilitaryStrengthById", "feign fallback");
        return hashMap;
    }
}
